import SvgIcon from './Svgicon/index.vue'
import Pagination from './MyPagination/index.vue'
import Category from './Category/index.vue'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const Globalcomponents: any = { SvgIcon, Pagination, Category };
export default {
    install(app: any) {
        Object.keys(Globalcomponents).forEach(key => {
            app.component(key, Globalcomponents[key]);
        });

        for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
            app.component(key, component)
        }
    }
}